<style>
.fui-footer .btn {
    margin-top: .6rem;
}
	.order_detail .fui-list-inner .title.has-address {
		font-size: .7rem;
		line-height: 1.2rem;
		height: 1.2rem;
		display: block;
	}
	.order_detail .fui-list-inner .text{
		white-space: nowrap;
		text-overflow: ellipsis;
		overflow: hidden;
	}
	.order_detail .fui-list:before{
		border: 0;
	}
	.order_detail .fui-list_title{
		position: relative;
		display: flex;
		align-items: center;
		line-height: normal;
	}
	/*.order_detail .fui-list_title:before{*/
		/*content: " ";*/
		/*position: absolute;*/
		/*left: 0.5rem;*/
		/*right: 0.5rem;*/
		/*bottom: 0;*/
		/*height: 1px;*/
		/*border-top: 1px solid #ebebeb;*/
		/*color: #D9D9D9;*/
		/*-webkit-transform-origin: 0 0;*/
		/*-ms-transform-origin: 0 0;*/
		/*transform-origin: 0 0;*/
		/*-webkit-transform: scaleY(0.5);*/
		/*-ms-transform: scaleY(0.5);*/
		/*transform: scaleY(0.5);*/
	/*}*/
	.order_detail  .lineblock {
		position: relative;
		overflow: hidden;
	}

	.order_detail  .lineblock:before {
		content: "";
		position: absolute;
		left: .5rem;
		top: 0;
		right: .5rem;
		height: 1px;
		border-top: 1px solid #ebebeb;
		-webkit-transform-origin: 0 100%;
		-ms-transform-origin: 0 100%;
		transform-origin: 0 100%;
		-webkit-transform: scaleY(0.5);
		-ms-transform: scaleY(0.5);
		transform: scaleY(0.5);
	}
</style>
<link rel="stylesheet" type="text/css" href="../addons/jy_weishop/custom/templates/mobile/css/orderdetail.css?v=2.0.3">
	<div class="fui-page cav order_detail">
		<div class="fui-header">
			<div class="fui-header-left">
				<a class="back" id="btn-back"></a>
			</div>
			<div class="title">
				订单详情
			</div>
			<div class="fui-header-right"></div>
		</div>
		<div class="fui-content navbar">
			<!--状态-->
			<div class="order_detail_header">
				<div class="order_detail_ststus">
					<div class="bold">
						<div ng-show="pagedata.order.status ==0 && pagedata.order.paytype==3"><i class="icon jinyunicon icon-information"></i> 货到付款，等待发货 </div>
						<div ng-show="pagedata.order.status ==0 && pagedata.order.paytype!=3" style="font-size: 0.85rem;"><i class="icon jinyunicon icon-information"></i> 等待付款 </div>
						<!--<div ng-show="pagedata.order.status==1 && pagedata.order.sendtype>0" style="font-size: 0.85rem;"><i class="icon jinyunicon icon-information"></i> 部分商品已发货 </div>-->
						<div ng-show="pagedata.order.status==1" style="font-size: 0.85rem;"><i class="icon jinyunicon icon-information"></i> 买家已付款 </div>
						<div ng-show="pagedata.order.status==1 && pagedata.order.ccard" style="font-size: 0.85rem;"><i class="icon jinyunicon icon-information"></i> （充值中）</div>
						<div ng-show="pagedata.order.status==2" style="font-size: 0.85rem;"><i class="icon jinyunicon icon-information"></i> 卖家已发货 </div>
						<div ng-show="pagedata.order.status==3" style="font-size: 0.85rem;"><i class="icon jinyunicon icon-information"></i> 交易完成 </div>
						<div ng-show="pagedata.order.status==3 && pagedata.order.ccard" style="font-size: 0.85rem;"><i class="icon jinyunicon icon-information"></i> （充值完成）</div>
						<div ng-show="pagedata.order.status==-1" style="font-size: 0.85rem;"><i class="icon jinyunicon icon-information"></i> 交易关闭</div>
						<div ng-show="pagedata.order.refundstate>0 && pagedata.order.status==1" style="font-size: 0.85rem;"><i class="icon jinyunicon icon-information"></i> 申请退款中</div>
						<div ng-show="pagedata.order.refundstate>0 && pagedata.order.status!=1" style="font-size: 0.85rem;"><i class="icon jinyunicon icon-information"></i> 申请售后中</div>
					</div>
					<div>订单金额：<span ng-if="pagedata.order.ispackage">(套餐总价)</span>&yen; {{pagedata.order.price}}</div>
				</div>
			</div>
				<div ng-show="pagedata.order.isverify==1 && pagedata.order.status!=-1 && pagedata.order.status!=0" class="code_box">
					<div class="img_box order_detail_code">
						<img ng-src="{{pagedata.order.qrcodeimg || '../core/resource/images/nopic.jpg'}" alt="">
					</div>
					<div class="ncs-goods-code" id="qrcode-goodsurl" ng-init="tool.qr(pagedata.order.qrcodeimg,'qrcode-goodsurl',100)"><canvas width="100" height="100"></canvas></div>
					<div class="cav_code">{{pagedata.order.verifycode}}</div>
				</div>
				<div ng-if="pagedata.order.addressid" class="fui-list-group noborder" style="display: block;">
							<div ng-show="pagedata.order.storeid && pagedata.order.expresssn" class="fui-list" style="background: #fff;">
								<div class="fui-list-icon">
									<i class="icon icon-deliver" style="color: #ff5555;"></i>
								</div>
								<div class="fui-list-inner" style="font-size: 0.7rem;height: auto;line-height: 1.5rem;">
									<p style='color:#ff5555'>{{pagedata.order.expresssn}}</p>
								</div>
								<div class="fui-list-angle"><span class="angle"></span></div>
							</div>	
						<a ng-show="pagedata.order.storeid && pagedata.order.status > 1 && pagedata.order.sendtype==0"  class="fui-list" style="background: #fff;" href="javascript:" ng-click="access_json('jy_weishop/order.express/getorder/id='+pagedata.order.id)">
							<div class="fui-list-icon">
								<i class="icon icon-deliver" style="color: #ff5555;"></i>
							</div>
							<div class="fui-list-inner" style="font-size: 0.7rem;height: auto;line-height: 1.2rem;">
							
								<p ng-show="!pagedata.express" style='color:#ff5555'>快递公司:{{pagedata.order.express}}</p>
								<p ng-show="!pagedata.express" style='color:#999'>快递单号:{{pagedata.order.expresssn}}</p>
							
								<p ng-show="pagedata.express" style='color:#ff5555'>{{pagedata.express.step}}</p>
								<p ng-show="pagedata.express" style='color:#999'>{{pagedata.express.time}}</p>
							
							</div>
							<div class="fui-list-angle"><span class="angle"></span></div>
						</a>
						
					<!--		{loop pagedata.order_goods $index $sg}  -->
								<a ng-show="pagedata.order.status > 0 && pagedata.order.sendtype>0 && pagedata.order_goods" ng-repeat="sg in pagedata.order_goods" class="fui-list" style="background: #fff;" href="javascript:" ng-click="access_json('jy_weishop/order.express/getorder/id='+sg.orderid+'sendtype='+sg.sendtype)">
									<div class="fui-list-icon">
										<i class="icon icon-deliver" style="color: #ff5555;"></i>
									</div>
									<div class="fui-list-inner" style="font-size: 0.7rem;height: auto;line-height: 1.2rem;">
										
										<p ng-show="empty(pagedata.express) && sg.expresscom" style='color:#ff5555'>快递公司:{{sg.expresscom}}</p>
										<p ng-show="empty(pagedata.express) && empty(sg.expresscom)" style='color:#ff5555'>快递公司:其他快递</p>
										<p style='color:#999'>快递单号:{{sg.expresssn}}</p>
									
										<p ng-show="!empty(pagedata.express)" style='color:#ff5555'>{{pagedata.express.step}}</p>
										<p ng-show="!empty(pagedata.express)" style='color:#999'>{{pagedata.express.time}}</p>
										
									</div>
									<div class="fui-list-angle"><span class="angle"></span></div>
								</a>
				
					<div class="fui-list" style="background: #fff; padding-top: .8rem;padding-bottom: .83rem;">
						<div class="fui-list-icon">
							   <i class="icon jinyunicon icon-ditu"></i>
						</div>
						<div class="fui-list-inner" style="font-size: 0.7rem;height: auto;">
							<div class="title has-address">{{pagedata.member.realname}} {{pagedata.member.mobile}}</div>
							<!--<p>{$address['realname']} {$address['mobile']}</p>-->
							<div class="text"><span class='address'>{{pagedata.address.pcd.province}}{{pagedata.address.pcd.city}}{{pagedata.address.pcd.district}}{{pagedata.address.address}}</span></div>
							<!--<p>{$address['province']}{$address['city']}{$address['area']}{if !empty($new_area) && !empty($address_street)} {$address['street']}{/if} {$address['address']}</p>-->
						</div>
					</div>
				</div>
			<!--商品信息-->
			<div class="fui-list-group" ng-repeat="m in pagedata.merchs">
				<div ng-show="!m.id" class="fui-list_title"><i class="icon icon-dianpu" style="margin-right: 0.25rem;"></i>{{pagedata.shopset.store_title || '平台自营'}}</div>
				<div ng-show="m.id" class="fui-list_title"><i class="icon icon-dianpu" style="margin-right: 0.25rem;"></i>{{m.merchname || '多商户'}}</div>
				<a class="fui-list" ng-repeat="g in m.goods"  href="javascript:" ng-click="access_json('jy_weishop/goods.detail//id='+g.id)">
						<div class="fui-list-media">
							<img ng-src="{{tomedia(g.image)}}"/>
						</div>
						<div class="fui-list-inner">
							<div class="title"><span ng-show="g.seckill_task" class="fui-label fui-label-danger">{{g.seckill_task.tag}}</span>{{g.title}}</div>
							<div ng-if="g.optionid" class="subtitle">{{g.optiontitle}}</div>
							<div ng-if="g.status==2" class="subtitle">
								<label class="fui-label fui-label-danger">赠品</label>
							</div>
							<span ng-show="g.status==3" class="btn btn-sm btn-default-o" href="javascript:" ng-click="access_json('jy_weishop/order.comment/comment/id='+g.id)">评价</span>
						</div>
						<div class="fui-list-angle" style="margin-right: 0">
							<div style="color: #000">￥{{g.price || '0.00'}}</div>
							<div class="num">x{{g.total || 1}}</div>
						</div>
				</a>
						<div ng-if="!g.fullbackgoods && (g.fullbackgoods.minallfullbackallprice>0 || g.fullbackgoods.minallfullbackallratio >0)" class="fui-cell-group">
							<a href="javascript:" ng-click="access_json('jy_weishop/member.fullback/')" class="fui-cell">
								<div class="fui-cell-label">全返详情</div>
								<div class="fui-cell-info">

								</div>
								<div ng-show="g.fullbackgoods.type>0" class="fui-cell-remark">
									<i class="icon icon-rechargefill" style="color: #ff6462;"></i>
								
										全返  {{g.fullbackgoods.minallfullbackallratio}}%  ， {{g.fullbackgoods.fullbackratio}}% /天，共  {{g.fullbackgoods.day}}  天
								
								</div>
								<div ng-show="g.fullbackgoods.type<=0" class="fui-cell-remark">
									<i class="icon icon-rechargefill" style="color: #ff6462;"></i>
									
										全返 &yen;{{g.fullbackgoods.minallfullbackallprice}}，&yen;{{g.fullbackgoods.fullbackprice}}/天，共 {{g.fullbackgoods.day}} 天
									
								</div>
							</a>
						</div>
				
						<div ng-show="!g.diyformdata && g.diyformdata != 'false'" class="fui-cell-group noborder">
							
							<div ng-repeat='(key,value) in g.diyformfields' class="fui-cell">
								<div class="fui-cell-label">{{value.tp_name}}</div>
								<div class="fui-cell-info">

								</div>
								<div class="fui-cell-remark noremark">
									
								</div>
							</div>
							
						</div>
		</div>
		<!--门店-->
		
		<div ng-show="pagedata.stores.length>0" class="fui-according-group">
			<div class="fui-according expanded">
				<div class="fui-according-header">
					<span class="text">适用门店</span>
							<span class="remark">
								<span class="badge">{{pagedata.stores_count}}</span>
							</span>
				</div>
				<div class="fui-according-content">
					<div class="content-block">
						<div class="fui-cell-group notop store-container">	
							<a ng-repeat="item in pagedata.stores" href="javascript:" ng-click="access_json('jy_weishop/store.detail//id='+item.id)" class="fui-cell">
								<div class="fui-cell-icon">
									<i class="icon icon-dianpu"></i>
								</div>
								<div class="fui-cell-info">
									{{item.title || '平台自营'}}
								</div>
								<div class="fui-cell-remark">
									查看
								</div>
							</a>
							<div ng-show="pagedata.stores_count>3" class='show-allshop'><span class='show-allshop-btn'>加载更多门店</span></div>
						
						</div>
					</div>
				</div>
			</div>
		</div>
		<div ng-show="pagedata.carrier" class="fui-cell-group">
			<div class="fui-cell">
				<div class="fui-cell-info">
					姓名：{{pagedata.carrier.carrier_realname}}
				</div>
				<div class="fui-cell-remark noremark">
				</div>
			</div>
			<div class="fui-cell">
				<div class="fui-cell-info">
					电话：{{pagedata.carrier.carrier_mobile}}
				</div>
				<div class="fui-cell-remark noremark">
				</div>
			</div>
		</div>
		
	
			<div ng-show="pagedata.order_fields && pagedata.order_data" class="fui-cell-group noborder">
				
				<div ng-repeat='(key,value) in pagedata.order_fields' class="fui-cell">
					<div class="fui-cell-label">{{value.tp_name}}</div>
					<div class="fui-cell-info">

					</div>
					<div class="fui-cell-remark noremark">
						
					</div>
				</div>
				
			</div>
		<!--消费码-->
		
			<div ng-show="pagedata.order.showverify" class="fui-cell-group">
								
								
										<div ng-show="pagedata.order.status>0 || pagedata.order.paytime > 0" ng-repeat="v in pagedata.verifyinfo" class="fui-cell lineblock">
											<div class="fui-cell-info">
												消费码:{{v.verifycode}}
											</div>

											<div class="fui-cell-remark noremark">
												
												<div ng-show="v.verified" class='fui-label fui-label-danger' >已使用</div>
											
												<div ng-show="pagedata.order.verifyendtime > 0 && pagedata.order.verifyendtime < time()" class='fui-label fui-label-warning' >已过期</div>
												
												<div ng-show="(pagedata.order.verifyendtime <= 0 || pagedata.order.verifyendtime >= time())&& pagedata.order.dispatchtype" class='fui-label fui-label-default' >未取货</div>
												
												<div ng-show="(pagedata.order.verifyendtime <= 0 || pagedata.order.verifyendtime >= time())&& pagedata.order.verifytype==1" class='fui-label fui-label-default' >剩余{php echo $goods[0]['total']-count($vs)} 次</div>
												
												<div class='fui-label fui-label-default' >未使用</div>
										
											</div>
										</div>
									
								
									<div  ng-show="pagedata.order.status<=0 && pagedata.order.paytime <= 0"   class="fui-cell lineblock">
										<div class="fui-cell-info">
											付款后可见!
										</div>
									</div>
								
							</div>
	<!--
		{if pagedata.order['status'] > 0}
		{if !empty(pagedata.order['virtual']) && !empty(pagedata.order['virtual_str'])}
			<!--发货信息->
			{if is_array(pagedata.ordervirtual) && !empty(pagedata.ordervirtual)}
				{loop pagedata.ordervirtual pagedata.ordervirtualindex pagedata.ordervirtualitem}
					<div class="fui-cell-group">
						<div class="fui-cell-title">发货信息 {php echo count(pagedata.ordervirtual)>1? pagedata.ordervirtualindex+1: ''}</div>
						{loop pagedata.ordervirtualitem pagedata.ordervirtualrow}
						<div class="fui-cell">
							<div class="fui-cell-label">{pagedata.ordervirtualrow['key']}</div>
							<div class="fui-cell-info" style="white-space: normal;word-wrap: break-word">{pagedata.ordervirtualrow['value']}</div>
						</div>
						{/loop}
						{if !empty($virtualtemp) && !empty($virtualtemp['linkurl'])}
						<a class="btn btn-default block" href="{$virtualtemp['linkurl']}">{php echo !empty($virtualtemp['linktext'])? $virtualtemp['linktext']: '使用地址'}</a>
						{/if}
					</div>
				{/loop}
			{else}
				<div class="fui-cell-group">
					<div class="fui-cell-title">发货信息</div>
					<div class="fui-cell">
						<div class="fui-cell-info" style="white-space: normal;word-wrap: break-word">{pagedata.order['virtual_str']}</div>
					</div>
					{if !empty($virtualtemp) && !empty($virtualtemp['linkurl'])}
					<a class="btn btn-default block" href="{$virtualtemp['linkurl']}">{php echo !empty($virtualtemp['linktext'])? $virtualtemp['linktext']: '使用地址'}</a>
					{/if}
				</div>
			{/if}

		{/if}

		{if !empty(pagedata.order['isvirtualsend']) && !empty(pagedata.order['virtualsend_info'])}
			<!--发货信息->
			<div class="fui-according-group">
				<div class="fui-according expanded">
					<div class="fui-according-header">
						<span class="text">发货信息</span>
						<span class="remark"></span>
					</div>
					<div class="fui-according-content"  style="display: block;">
						<div class="content-block">
							<div class="fui-cell-group notop">
								<div   class="fui-cell">
									<div class="fui-cell-info" style="white-space: normal;word-wrap: break-word">
										{pagedata.order['virtualsend_info']}
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		{/if}
		{/if}
		-->
		<!--商品小计-->
		<div class="fui-cell-group noborder">
			<div class="fui-cell">
				<div class="fui-cell-label">商品小计</div>
				<div ng-show='pagedata.order.ispackage' class="fui-cell-info">
					(套餐总价)
				</div>
				<div class="fui-cell-remark noremark">
					&yen; {{pagedata.order.goodsprice}}
				</div>
			</div>
			<div ng-show='pagedata.order.dispatchprice' class="fui-cell">
				<div class="fui-cell-label">运费</div>
				<div class="fui-cell-info">

				</div>
				<div class="fui-cell-remark noremark">
					&yen; {{pagedata.order.dispatchprice}}
				</div>
			</div>
			
			<div ng-show='pagedata.order.lotterydiscountprice && pagedata.order.lotterydiscountprice>0' class="fui-cell">
				<div class="fui-cell-label">抽奖优惠</div>
				<div class="fui-cell-info">

				</div>
				<div class="fui-cell-remark noremark">
					- &yen; {{pagedata.order.lotterydiscountprice}}
				</div>
			</div>
		

		
					<div ng-if="pagedata.order.ispackage !=1 && pagedata.order.enough_de_price>0" class="fui-cell">
						<div class="fui-cell-label">满额立减</div>
						<div class="fui-cell-info">

						</div>
						<div class="fui-cell-remark noremark">
							-&yen; {{pagedata.order.enough_de_price}}
						</div>
					</div>
				
					<div ng-show='pagedata.order.ispackage !=1 && pagedata.order.coupon_de_price>0' class="fui-cell">
						<div class="fui-cell-label">优惠券优惠</div>
						<div class="fui-cell-info">

						</div>
						<div class="fui-cell-remark noremark">
							-&yen; {{pagedata.order.couponprice}}
						</div>
					</div>
			
				
					<div ng-show='pagedata.order.ispackage !=1 && pagedata.order.buyagainprice>0' class="fui-cell">
						<div class="fui-cell-label">重复购买优惠</div>
						<div class="fui-cell-info">

						</div>
						<div class="fui-cell-remark noremark">
							-&yen; {{pagedata.order.buyagainprice}}
						</div>
					</div>
				

			
					<div ng-show='pagedata.order.ispackage !=1 && pagedata.order.discountprice>0' class="fui-cell">
						<div class="fui-cell-label">会员优惠</div>
						<div class="fui-cell-info">

						</div>
						<div class="fui-cell-remark noremark">
							-&yen; {{pagedata.order.discountprice}}
						</div>
					</div>

				<div ng-show='pagedata.order.ispackage !=1 && pagedata.order.isdiscountprice>0' class="fui-cell">
					<div class="fui-cell-label">促销优惠</div>
					<div class="fui-cell-info">

					</div>
					<div class="fui-cell-remark noremark">
						-&yen; {{pagedata.order.isdiscountprice}}
					</div>
				</div>
				
				
					<div ng-show='pagedata.order.ispackage !=1 && pagedata.order.deductprice>0' class="fui-cell">
						<div class="fui-cell-label">积分抵扣</div>
						<div class="fui-cell-info">

						</div>
						<div class="fui-cell-remark noremark">
							-&yen; {{pagedata.order.deductprice}}
						</div>
					</div>
				

				
					<div ng-show='pagedata.order.ispackage !=1 && pagedata.order.deductcredit2>0' class="fui-cell">
						<div class="fui-cell-label">{pagedata.set.moneytext}}抵扣</div>
						<div class="fui-cell-info">

						</div>
						<div class="fui-cell-remark noremark">
							-&yen; {{pagedata.order.deductcredit2}}
						</div>
					</div>
			

					<div ng-show='pagedata.order.ispackage !=1 && pagedata.order.seckilldiscountprice>0' class="fui-cell">
						<div class="fui-cell-label">秒杀优惠</div>
						<div class="fui-cell-info">

						</div>
						<div class="fui-cell-remark noremark">
							-&yen; {{pagedata.order.seckilldiscountprice}}
						</div>
					</div>


				<div class="fui-cell">
					<div ng-if="pagedata.order.dispatchprice" class="fui-cell-label" style="width: 6rem;">实付费(含运费)</div>
					<div ng-if="!pagedata.order.dispatchprice" class="fui-cell-label" style="width: 6rem;">实付费</div>
					<div class="fui-cell-info">

					</div>
					<div class="fui-cell-remark noremark text-danger">
						 <span style='font-size:.75rem'>&yen;{{pagedata.order.price}}
					</div>
				</div>
			</div>

			<div class="fui-cell-group noborder order-info">
				<div class="fui-cell">
					<div class="fui-cell-info">
						<span style="margin-right: 0.7rem;">订单编号</span>{{pagedata.order.ordersn}}
					</div>
					<div class="fui-cell-remark noremark">

					</div>
				</div>
				<div class="fui-cell">
					<div class="fui-cell-info">
						<span style="margin-right:0.7rem;">创建时间</span>{{pagedata.order.createtime}}
					</div>
					<div class="fui-cell-remark noremark">

					</div>
				</div>
				
					<div ng-show='pagedata.order.status>=1 && pagedata.order.paytime > 0' class="fui-cell">
						<div class="fui-cell-info">
							<span style="margin-right: 0.7rem;">支付时间</span>{{pagedata.order.paytime}}
						</div>
						<div class="fui-cell-remark noremark">

						</div>
					</div>
				
						<div ng-show='!pagedata.isonlyverifygood && pagedata.order.status>=2' class="fui-cell">
							<div class="fui-cell-info">
								<span style="margin-right: 0.7rem;">发货时间</span>{{pagedata.order.sendtime}}
							</div>
							<div class="fui-cell-remark noremark">

							</div>
						</div>
				
					<div ng-show='pagedata.order.status==3' class="fui-cell">
						<div class="fui-cell-info">
							<span style="margin-right: 0.7rem;">完成时间</span>{{pagedata.order.finishtime}}
						</div>
						<div class="fui-cell-remark noremark">

						</div>
					</div>
				
			</div>
		</div>
		<div class="fui-footer" style="text-align: right;">
					<div ng-show="pagedata.order.userdeleted!=1 && pagedata.order.status==0" class="btn btn-sm btn-default-o order-cancel" href="javascript:" ng-click="post({},'cancel','id='+pagedata.order.id)">取消订单
						<select data-orderid="{{pagedata.order.id}}">
							<option value="">不取消了</option>
							<option value="我不想买了">我不想买了</option>
							<option value="信息填写错误，重新拍">信息填写错误，重新拍</option>
							<option value="同城见面交易">同城见面交易</option>
							<option value="其他原因">其他原因</option>
						</select>
					</div>
								<a ng-show="pagedata.order.userdeleted!=1 && pagedata.order.status==0 && pagedata.order.paytype!=3 && !pagedata.ispeerpay" class="btn btn-sm btn-red-o"  ng-click="pay_submit({},'//setpay/id='+pagedata.order.id)">支付订单</a>
						
								<a ng-show="(pagedata.order.userdeleted!=1 && pagedata.order.status==0) && (pagedata.order.paytype==3 || pagedata.ispeerpay)" class="btn btn-sm btn-red-o"  ng-click="pay_submit({},'//setpay/id='+pagedata.order.id)">代付订单</a>
						
					<div ng-show="pagedata.order.status==3 || pagedata.order.status==-1" class="btn btn-sm btn-default-o order-delete" href="javascript:" ng-click="post({},'delete','id='+pagedata.order.id)">删除订单</div>
			
				
				<!--	<a ng-show="pagedata.order.status==3 || pagedata.order.iscomment==1" class="btn btn-sm btn-default-o" href="javascript:" ng-click="access_json('jy_weishop/order.comment/comment/id='+pagedata.order.id)">追加评价</a> -->
			
						<a ng-show="!pagedata.activity && !pagedata.order.refundstate && pagedata.order.status>0 && pagedata.order.isshare == 0" data-nocache="true" class="btn btn-sm btn-default-o" href="javascript:" ng-click="access('jy_weishop/coupon.index/')">领取优惠券</a>
					<div  ng-show="pagedata.order.status==2 && !pagedata.order.refundstate" class="btn btn-sm btn-default-o order-finish" href="javascript:" ng-click="post({},'confirm','id='+pagedata.order.id)">确认收货</div>
		
					<a ng-show="pagedata.order.canrefund && !empty(pagedata.order.refundstate)" data-nocache="true" class="btn btn-sm btn-default-o" href="javascript:" ng-click="access_json('jy_weishop/order.refund//id='+pagedata.order.id)">查看进度</a>
					<a ng-show="pagedata.order.canrefund && pagedata.order.status==1" data-nocache="true" class="btn btn-sm btn-default-o" href="javascript:" ng-click="access_json('jy_weishop/order.refund//id='+pagedata.order.id)" >申请退款</a>
					<a ng-show="pagedata.order.canrefund && pagedata.order.status!=1" data-nocache="true" class="btn btn-sm btn-default-o" href="javascript:" ng-click="access_json('jy_weishop/order.refund//id='+pagedata.order.id)" >申请售后</a>
					<a ng-show="pagedata.order.refundstate > 0 && pagedata.refund.status!=5" class='btn btn-sm btn-default-o btn-cancel'>取消申请</a>
				<div ng-show="pagedata.order.userdeleted==1" class="btn btn-sm btn-default-o order-deleted" href="javascript:" ng-click="post({},'rdelete','id='+pagedata.order.id)">彻底删除订单</div>
				<div ng-show="pagedata.order.userdeleted==1" class="btn btn-sm btn-default-o order-recover" href="javascript:" ng-click="post({},'reset','id='+pagedata.order.id)">恢复订单</div>
			
		</div>

<div ng-include="sys_html('common/_footer')"></div>

		<div ng-show='pagedata.order.isverify==1' class="mask">
			<div class="code_box">
				<p>请将二维码出示给核销员</p>
				<div class="img_box">
					<img class="qrimg" ng-src="{{tomedia(pagedata.qrcodeimg)}}"/>
				</div>
				<div class="cav_code">{{pagedata.order.verifycode}}</div>
				<div class="error">
					<p style="padding: 0 1.3rem">温馨提示：为了更好的保护您利益,请不要轻易将您的核销二维码泄露给他人</p>
				</div>
			</div>
		</div>
	</div>

	<script type="text/javascript">
		$('.order_detail_code').click(function(){
			$('.mask').css({display:'block'})
		})
		$('.mask').click(function(){
			$(this).css({display:'none'})
		})
	</script>
